<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/8/9
  Time: 14:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>结算-嗨购</title>
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/static/img/higou.png" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/tiaozhuan.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/bootstrap.min.js"></script>
</head>

<body>
<div id="top">
    <div id="top_1">
        <div id="top_1_left">
            <p>欢迎您,</p>
            <a href="#" id="name">${sessionScope.user.u_name}</a>
            <a href="${pageContext.request.contextPath}/LogoutServlet.do" id="exit">[退出]</a>
            <p class="shu">|</p>
            <a href="${pageContext.request.contextPath}/UserInfoServlet.do" id="refer">订单查询</a>
        </div>
    </div>
    <div id="logo">
        <img src="${pageContext.request.contextPath}/static/img/higou.png" />
        <div id="dianhu">
            <p class="lianxifangshi">400-820-8820</p>
            <p class="gongzuoshijian">8:00-22:00</p>
        </div>
    </div>
</div>
<div id="top_line"></div>
<div id="centre">
    <div id="back">
        <div>支付成功,</div>
        <div id="n"> 5 </div>
        <div>秒后返回购物车页面!</div>
    </div>
    <div id="liji">
        <a href="#" onclick="back()">立即返回!</a>
    </div>
</div>
<div id="weiziji">
    <img src="${pageContext.request.contextPath}/static/img/weiziji.jpg" />
</div>
</body>
<script type="text/javascript">
    function back() {
        location.href="${pageContext.request.contextPath}/SearchCarServlet.do";
    }
    var n = 4;
    var div = document.getElementById("n");

    function setNum() {
        div.innerHTML = n;
        n--;
        if(n == -1) {
            back();
        }
    }
    setInterval("setNum()", 1000);
</script>

</html>